package com.xszx.dao;

import com.github.pagehelper.PageInfo;
import com.xszx.config.PageRequest;
import com.xszx.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserDao {


    void addUser(User user);

    void delUser(Integer uid);

    void updateUser(User user);

    List<User> getUserListWithPage(PageRequest pageRequest);

    User findByLoginName(@Param("username")String username);

    void register(User user);

    User findByUid(Integer uid);
}
